package com.study.design.pattern.principle.dependenceinversion;

/**
 * @Author: gongsl
 * @Date: 2025-01-11 21:52
 * @description: 课程测试类
 */
public class TestCourse {
    public static void main(String[] args) {
        Tom tom = new Tom();
        tom.setiCourse(new JavaCourse());
        tom.studyCourse();

        tom.setiCourse(new FECourse());
        tom.studyCourse();
    }
}
